<div class="container">
    @if(session('error'))
        <div class="danger" role="alert">
            <ul>
                <li>{{session('error')}}</li>
            </ul>
            <button type="button" id="close"><span aria-hidden="true">&times;</span></button>
        </div>
    @endif
    @if(session('success'))
        <div class="success" role="alert">
            <ul>
                <li>{{session('success')}}</li>
            </ul>
            <button type="button" id="close"><span aria-hidden="true">&times;</span></button>
        </div>
    @endif
    @if(count($errors) > 0)
        <div class="danger" role="alert">
            <ul>
                @foreach($errors->all() as $error)
                    <li>{{$error}}</li>
                @endforeach
            </ul>
            <button type="button" id="close"><span aria-hidden="true">&times;</span></button>
        </div>
    @endif
</div>
